% 解的精度与病态
clear;

A = [3.021 2.714 6.913; 1.031 -4.273 1.121; 5.084 -5.832 9.155];
b = [12.648 -2.121 8.407]';
x1 = A\b

% 将A(2,2)从-4.273替换为-4.275
A(2,2) = -4.275;
x2 = A\b

fprintf('系数矩阵A的条件数：%f\n',cond(A));